lib/core: Avoid NULL deref in content_file_parse() if out variable unset
authorColin Walters <walters@verbum.org>
Thu, 22 Jun 2017 17:01:50 +0000 (13:01 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 23 Jun 2017 14:11:36 +0000 (14:11 +0000)
commitaafda9073ad581f9b8051d58947bbab9379badcc
tree7f1eb037bf9c005cdc3b85d50e1af565c345fb42
parent90b587e2c8c5593797b201dc1a63b59cd5fd5022
lib/core: Avoid NULL deref in content_file_parse() if out variable unset

Prep for a change in `ostree_repo_load_file()`.  We would crash if a
caller had `out_file_info = NULL`, because we deref `ret_file_info`
below it.

Closes: #951
Approved by: jlebon
src/libostree/ostree-core.c